package com.example.nophase.activity;

import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.example.nophase.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class TestActivity extends AppCompatActivity {

    @BindView(R.id.btn_test)
    Button btnTest;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        ButterKnife.bind(this);

    }


    private void initDialog() {

//        MultifunctionDialog dialog = new MultifunctionDialog(TestActivity.this, "多功能的弹窗", "确认", "取消",);
//        dialog.show();
//        dialog.setHint("请输入项目名称");
//        dialog.setClicklistener(new MultifunctionDialog.ClickListenerInterface() {
//            @Override
//            public void doConfirm() {
//                dialog.dismiss();
//            }
//
//            @Override
//            public void doCancel() {
//
//                dialog.dismiss();
//            }
//        });
    }

    @OnClick(R.id.btn_test)
    public void onViewClicked() {
        initDialog();
    }
}
